package com.iwop.moto.service;

import com.iwop.moto.model.SuperRecordModel;

import java.util.List;

/**
 * @author huyuangui on 2016/7/25.
 */
public interface IDataService {

    List<SuperRecordModel> findDataByParent(String parentname);

    List<SuperRecordModel> findListByCodeType(String codetype);

    List<SuperRecordModel> findListByCodeType(SuperRecordModel srm);

    SuperRecordModel findDataByCodeTypeEx(SuperRecordModel srm);

    void addData(SuperRecordModel srModel);

    List<SuperRecordModel> findDataParentNode(SuperRecordModel srm);

    void deleteData(SuperRecordModel srModel);

    void updateData(SuperRecordModel srModel);

    SuperRecordModel getDataDetail(SuperRecordModel srModel);
}
